I have few ProLabs GLC-T-C 1000BASE-T SFP's. If I insert this SFP into
EX4200-24F switch, both Admin and Link status are immediately "up". Admin
status should be "up" by default, but I find it odd, that Link status stays
"up" as well even if there is no cable connected to the SFP.
When I insert th
n/a Methode Elec. SP7041-M1-JN n/a
>
>
>
> Kind Regards,
> Peter Krupl
> Siminn Danmark A/S
>
>
>
> > -----Original Message-
> > From: juniper-nsp-boun...@puck.nether.net [mailto:juniper-nsp-
> > boun...@puck.nether.net] On Behalf Of Martin T
&g
It looks like if one turns power supply of M20 ON and then OFF(or
vice-versa) in less than 60s, then "show chassis alarms" and "show
system alarms" stay present and only restart of chassisd(or router
reboot) would help. This "After powering off a power supply, wait at
least 60 seconds before turnin
Hello,
as far as I know, there is no possibility to check CPU or memory
utilization history under JUNOS. Any rumors, will there be "show
processes cpu history" analog for JUNOS in future versions? Or do most
users query CPU and memory utilization over SNMP periodically and draw
graphs in NMS?
reg
At the very beginning of the RE-850 bootup process, there is a
following message displayed:
<
Award Modular BIOS v4.51PG, An Energy Star Ally
Copyright (C) 1984-98, Award Software, Inc.
BIOS Version 1.2
11/02/2004-i440GX-SMC67X-2A69TU00C-00
Press DEL to enter SETUP
>
Howe
Ok :) Any hints? Even if I press DEL rapidly, it still continues with
normal boot process..
regards,
martin
2011/2/9 Richard A Steenbergen :
> On Wed, Feb 09, 2011 at 07:41:36PM +0200, Martin T wrote:
>>
>> Press DEL to enter SETUP
>> >>>>>
>>
>&g
I have a RE-850 with Compact Flash and PATA 2.5" form factor HDD
installed. However, both of these are zero-filled. What are the
general guidelines to get JONOS running on this RE?
Boot order in BIOS is following:
PCMCIA ATA Flash Card
Compact Flash
Primary IDE Hard Disk
Ethernet
As I have no "P
t you know.
regards,
martin
2011/2/9 Chris Adams :
> Once upon a time, Martin T said:
>> Ok :) Any hints? Even if I press DEL rapidly, it still continues with
>> normal boot process..
>
> Make sure your serial program is sending the correct code when you hit
> DEL. I believe
.@windstream.com or alex@kdlinc.com
> Phone) +1-262-792-4993
> Fax) +1-812-206-4682
> =
>
> -Original Message-
> From: juniper-nsp-boun...@puck.nether.net
> [mailto:juniper-nsp-boun...@puck.nether.net] On Behalf Of Martin T
> Sent: Wednesday, February 09,
Probe Networks) :
> Martin,
>
> yes thats the correct way to do it. Only the pc-card slot is able to
> fully partition both CF and HDD using a install-media image and get you
> a fresh and blank JunOS installed.
> It will install on both CF and HDD and thus you will have a redundant
try without bs=64k. Also no real need to blank the CF first.
>
> Regards,
> Jonas
>
>
> Am Donnerstag, den 10.02.2011, 16:11 + schrieb Martin T:
>> Looks like I'm unable to boot from "PCMCIA ATA Flash Card":
>>
>> <<<<<
>> Award
The exact model of CF I'm using in SanDisk "CompactFlash PC Card
Adapter" is a 1GB "SiliconDrive CF"(SiliconSystems, Inc. Now owned by
Western Digital) SSD-C01G-3596. Any experience with this particular CF
card? Any other ideas/suggestions what to try?
regards,
ma
Ok, so for example those two should work for sure:
SDCFB-512-A10(http://www.amazon.com/SanDisk-CompactFlash-SDCFB-512-A10-Retail-Package/dp/B6B9QF)
and
SDCFB-1024-A10(http://www.amazon.com/SanDisk-SDCFB-1024-A10-Type-Retail-Package/dp/B6AE3K)?
Any other CF cards, which are confirmed to wor
? Any other
CF cards, which are confirmed to work?
regards,
martin
2011/2/14 Martin T :
> Ok, so for example those two should work for sure:
> SDCFB-512-A10(http://www.amazon.com/SanDisk-CompactFlash-SDCFB-512-A10-Retail-Package/dp/B6B9QF)
> and
> SDCFB-1024-A10(http://www.amazon
Has anyone tried to install for example
install-media64-10.4R3.4-export? I tried to install this on
M10i(RE-850, Intel Pentium III i686) with not much luck as I ended up
in debugging subshell:
ERROR: Package jbundle is not compatible - amd64 vs {i386}
ERROR: jbundle-10.4R3.4-export fails requireme
eme" models and stuck to "Standard" speed CF instead, because of
> issue reports from others. Hope this helps.
>
> good luck,
> Christian
>
>>-Original Message-
>>From: juniper-nsp-boun...@puck.nether.net
>>[mailto:juniper-nsp-boun...@puck.
ok, thanks for the clarification!
regards,
martin
2011/3/23 Chris Adams :
> Once upon a time, Anton Delport said:
>> I believe this image is supported on the new RE-S-1800's as well at the
>> JCS. I does not work on the m10i.
>
> The download page should probably note this better; right now, the
I made a following setup:
http://img690.imageshack.us/img690/3162/iperftest.png
In a laptop, an Iperf server is listening like this: "iperf -s -u -fm".
In a workstation, an Iperf client is executed like this: "iperf -c
192.168.2.1 -u -fm -t60 -d -b 10m". This will execute simultaneous
10Mbps UDP
fic
>
> and you should see the loss go away.
>
> Cheers,
>
> Ben
>
> On 04/04/2011, at 7:41 PM, Martin T wrote:
>
>> I made a following setup:
>>
>> http://img690.imageshack.us/img690/3162/iperftest.png
>>
>> In a laptop, an Iperf server is listening
then I don't find
this normal..
regards,
martin
2011/4/4 Gabriel Blanchard :
> The policer is dropping packets in order to slow down your connection to
> 10mbps. In my opinion this is working perfectly.
>
>
>
> On 2011-04-04, at 8:30 AM, "Martin T" wrote:
>
Is it an AC or DC PSU? In addition, check you revision number as well.
You might be affected with following issue:
8<-
Bulletin: PSN-2003-12-001
Title: Recommended replacement of older revisions of M20 power supply
Products Affected: This issue affects the following power supplies.
Ben,
thanks for this "filter-specific" explanation!
Gabriel, Stefan, Chuck, Sthaug:
Packet loss, which Iperf rapports, boils down to how the
"bandwidth-limit" and "burst-size-limit" works. As Stefan mentioned,
it would be logical that everything below IP header is counted into
this "10m" as poli
As far as I know, all Juniper routers have "Yellow led" and "Red led"
indicators on "craft interface". Few examples:
http://www.juniper.net/techpubs/software/nog/nog-hardware/html/craft-interfacea11.gif
http://www.juniper.net/techpubs/software/nog/nog-hardware/html/craft-interfacea4.gif
http://www
major alarms
> When first configuration yellow indicate the rescue configuration is not set
>
> Best Regards,
> -Masagung Nugroho-
>
> -Original Message-
> From: juniper-nsp-boun...@puck.nether.net
> [mailto:juniper-nsp-boun...@puck.nether.net] On Behalf Of Ido Sz
Stefan,
I see. If policer counts in the IPv4 header as well, it would do
(51021*28)/(1024*1024)=1.4MB which is rather close to 71.5-69.8=1.7MB.
Could you please explain this "larger buffer to smooth things out"
argument? As I understand, in simple terms, larger buffer is able to
hold larger amount
Juan,
was your PSU 740-001465 one of those?
M20 AC PWR-M20-AC-S 740-001465 Revision 7 and earlier
M20 DC PWR-M20-DC-S 740-001466 Revision 8 and earlier
regards,
martin
2011/4/4 Juan C. Crespo R. :
> You're completely right
>
> Thanks
> On 04/04/2011 10:03 a.m., Paul Stewart wrote:
>>
>> Presume
I found an unofficial guide on juniper.cluepon.net which describes
following memory testing technique:
* start shell user root
* vty ssb/feb
* bringup chassis slot-state 0 diag
* diagnostic set mode manufacturing
* diag clear log
* diag bchip 0 sdram
Example(Juniper M20):
SSB1
Keegan,
policer configuration is shown here:
http://img690.imageshack.us/img690/3162/iperftest.png
Sthaug,
thanks for explanation! So basically one might describe small buffer
vs larger buffer with following drawing:
http://img24.imageshack.us/img24/3777/leakybucket.png (I'm not very
good with Gi
t?
>
> Thanks
>
>
>
> On 08/04/2011 10:40 a.m., Martin T wrote:
>>
>> Juan,
>> was your PSU 740-001465 one of those?
>>
>> M20 AC PWR-M20-AC-S 740-001465 Revision 7 and earlier
>> M20 DC PWR-M20-DC-S 740-001466 Revision 8 and earlier
>>
In addition, has anybody used those alarm relays on craft interface?
If yes, then how? Connect a blinker? :-)
regards,
martin
2011/4/5 Martin T :
> I see. And as I understand, there is no SNMP OID for "set chassis
> alarm services rx-errors", "set chassis alarm ethern
I have one 10GE interface(XFP-10G-LR, average utilization is ~1Gbps)
in my Juniper router facing the ISP constantly producing small amount
of errors:
Input errors:
Errors: 20, Drops: 0, Framing errors: 20, Runts: 0, Policed
discards: 0, L3 incompletes: 0, L2 channel errors: 0, L2 mismatch
ti
What is the difference between "request system halt" and "request
system power-off" under JUNOS? Is there a possibility to completely
turn off the router remotely(for example in case of Cisco it's
impossible)?
regards,
martin
___
juniper-nsp mailing list
thoughts/experiences?
regards,
Martin
2011/6/15 Chuck Anderson :
> On Tue, Jun 14, 2011 at 08:22:57PM -0700, Michel de Nostredame wrote:
>> On Tue, Jun 14, 2011 at 3:28 PM, Martin T wrote:
>> > What is the difference between "request system halt" and "request
>>
.
Sebastian,
in case one executes "request system power-off" under MX platform,
then physical power-cycle is needed for the router in order to boot it
up again?
regards,
martin
2011/6/16 Sebastian Wiesinger :
> * Martin T [2011-06-15 00:30]:
>> What is the difference between &q
I'm rather sure that Stacy is correct. In addition, for example M10i,
which has 4 PSU's as well, requires at least two of them to be
operational at a time.
regards,
martin
2011/6/21 Stacy W. Smith :
> I think this is expected.
>
> http://www.juniper.net/techpubs/en_US/release-independent/junos/to
What is the acceptable Rx power in case of SFP/XFP? For example, here
are XFP Tx and Rx signals from six FXP's:
1:
Laser output power: 1.2920 mW / 1.11 dBm
Laser rx power: 0.0285 mW / -15.45 dBm
2:
Laser output power:
gt; http://www.cisco.com/en/US/prod/collateral/modules/ps2797/ps5138/product_data_sheet09186a008007cd00_ps5455_Products_Data_Sheet.html
>> >
>> > Check Table-2.
>> >
>> > As far as I know, an optic will output power within a specified range
>> > as acc
Hi,
in case one has following settings active with it's BGP peer:
Holdtime: 90 Preference: 170
Active Holdtime: 90
Keepalive Interval: 30
..then what do they mean? As I understand, "Holdtime" is the maximum
number of seconds allowed to elapse between the time that a BGP system
receives succ
David, Stefan:
I configured "hold-time 20" and BGP session came up with an "Active
Holdtime: 20" as expected. Thank you for explanations!
regards,
martin
2011/8/9 Stefan Fouant :
> On 8/9/2011 7:55 AM, Martin T wrote:
>>
>> Hi,
>> in case one has fol
I have a Juniper M20 with Junos 9.4R4.5, which all of the sudden
doesn't support SSH login:
martint@martin:~> ssh 192.168.1.254
Enter passphrase for key '/home/martin/.ssh/id_dsa':
--- JUNOS 9.4R4.5 built 2009-11-16 16:23:14 UTC
could not open user interface connection: management daemon not run
I have one M20 SSB-E(710-001951) which uses SMS SM57208809WDTX6 64MB
SDRAM DIMM. It uses Samsung K4E6408120-TL50 memory chips. Maybe this
information helps if you should accidentally find a SM57208809WDTX6
from second-hand market.
regards,
martin
2011/8/10 Juan C. Crespo R. :
> Guys
>
> Does
Cold reboot of the router helped :)
regards,
martin
2011/8/10 Martin T :
> I have a Juniper M20 with Junos 9.4R4.5, which all of the sudden
> doesn't support SSH login:
>
>
> martint@martin:~> ssh 192.168.1.254
>
> Enter passphrase for key '/home/martin/.ssh/
I have a ge-0/0/0 interface in Juniper M20(JUNOS 9.4R4.5), which has
unit 10 configured to it. Configuration of the interface is basically
following:
ge-0/0/0 {
unit 10 {
family inet {
rpf-check;
mtu 1500;
filter {
Stefan, Stacy:
thank you for explanations! I made a following setup for testing this:
http://img853.imageshack.us/img853/3366/88435449.png
..and as you can see, I enabled "protocol tcp" under "established"
term and now the results are following:
root> ping 192.168.1.1 source 192.168.1.14 count
What are the best practices for cleaning the router in order to deploy
it in some other site? I did "set system root-authentication
plain-text-password" in order to have some sort of temporary root
password. Then I set configuration file to defaults using the "load
factory-default". After this I di
Is it possible to load-balance traffic between a Juniper M10i and
Cisco 1812 using two different last-mile(ADSL2+) providers? Topology
should be like this:
http://img803.imageshack.us/img803/8766/loadb.png
Idea is to use both ADSL2+ links simultaneously in order to achieve
better speed. In case o
't affect system files- I
mean after executing the zeroize and rebooting the router, it boot's
up nicely with the currently installed JUNOS just all the
configuration, log and temporary files are deleted?
regards,
martin
2011/8/22 Dale Shaw :
> Hi Martin,
>
> On Mon, Aug 22, 201
ome/*
..or will there be any personal information left after those three steps?
regards,
martin
2011/8/22 Martin T :
> Chris, Dale:
>
> "request system zeroize" will according to description "Erase all
> data, including configuration and log files". Are the files
Very often customers or NMS send ICMP "echo request" packages to a
router physical interface, subinterface or loopback interface and
expect ICMP "echo reply" as a response in order to test packet loss on
the connection. How reliable are Juniper routers in terms of replying
to ICMP "echo request" pa
I have a subinterface which has /29 globally routable IP network
associated with it. Today after recovery of a major routing
instability in the network, this particular /29 network still behaved
tricky- hosts behind this subinterface were able to reach some
Internet hosts, but there was no consiste
Hello,
I have a following setup:
Cisco891[Gi0] <-> L2 last-mile provider <-> [ae0.266]M10i
MTU of Cisco891 interface Gi0 is 1500 bytes:
CISCO891-K9>show interfaces Gi0 | i MTU
MTU 1500 bytes, BW 10 Kbit/sec, DLY 100 usec,
CISCO891-K9>
..and MTU of M10i interface ae0.266 is 1500 bytes a
Steinar,
yes, I agree. Packets should be fragmented and they are fragmented.
However, why doesn't Cisco 891 send back fragmented ICMP "echo
replies"? Unfortunately I don't manage this Cisco 891 so I'm not able
to run debug on the Cisco 891. Or does JUNOS drop fragmented ICMP
"echo replies" by defau
I made a following setup:
http://img4.imageshack.us/img4/9311/switchvsroutertraffic.png
"Setup with Juniper router" uses Juniper router and "Setup with Cisco
router" uses Cisco router. Both computers sent data(Iperf sends 1470
byte datagrams) for 300 seconds at 9Mbps. As you can see, in case of
C
This isn't directly related with Juniper, but hopefully not totally
off-topic as well :) At least here might be some industry insiders,
who have some experience with submarine cables.
1) According to engineer in this video: http://vimeo.com/29975179
..modern submarine cables are often built as sel
RPD process(/usr/sbin/rpd -N) has a high ~80-90% CPU usage:
PID USERNAME THR PRI NICE SIZERES STATETIME WCPU COMMAND
1278 root 1 1220 552M 538M RUN215.0H 86.13% rpd
..on M10i platform(RE-850) without an obvious reason- there has been
no changes in network
Hi,
JUNOS(10.4R9.2 at M10i) supports DHCP relay agent information option
configuration under "forwarding-options helpers bootp". However,
despite the configuration, DHCP messages received by DHCP server do
not have option 82 present. For example I made such configuration:
root@labM10i> show confi
gured together in different
> VRs/VRFs.
> Thanks
> Alex
>
> - Original Message - From: "Martin T"
> To:
> Sent: Monday, September 17, 2012 1:15 PM
> Subject: [j-nsp] DHCP option 82 under "forwarding-options helpers
> bootp"configuration
>
&g
Hi,
I had "dhcp-relay" configuration active on M10i(10.4R9.2). This
feature requires "scale-subscriber" license. I replaced "dhcp-relay"
configuration with "helpers bootp" configuration. However, the "show
system license" and "show system alarms" still indicate that I'm using
"dhcp-relay" feature:
Is LACP supported on forwarding plane on M10i? According to "Disabling
Distributed Periodic Packet Management on the Packet Forwarding
Engine"(http://goo.gl/uDwYm) document LACP is supported on packet
forwarding engine only on MX series.
On the other hand, "show pfe statistics traffic" displays L
Hi,
"Hardware input drops" counter in "show pfe statistics traffic" output
increases rapidly in case one floods router interface with small UDP
datagrams. "Software input medium drops" counter increases as well.
"show pfe statistics traffic" output can be seen below:
root@M10i> show pfe statistic
ort engineer - Orange France
> Ph. +33 2 99 87 64 72 - Mob. +33 6 85 52 22 13
> david@orange.com
>
> JNCIE-M&T/SP #703 - JNCIE-ENT #305 - JNCIP-SEC
>
> -----Message d'origine-
> De : juniper-nsp-boun...@puck.nether.net
> [mailto:juniper-nsp-boun...@puck.nethe
Hi,
I have a setup where two Linux workstations are connected to each
other via Juniper remote LSP circuit
cross-connect(remote-interface-switch). Simplified setup looks like
this:
workstation1 <-> M20 <-> M10i <-> workstation2
Both workstations have three sub-interfaces(VLAN interfaces).
"work
edit]
root@M20#
..but such configuration broke the connectivity between the
"workstation1" and "workstation2". Any ideas how to police multiple
family ccc interfaces with one shared policer on M(or MX) series?
regards,
Martin
2012/12/12 Martin T :
> Hi,
>
> I have a
Hi,
I have a Juniper M5(8.5R4.3) with RE-333-256 routing-engine in remote
location. I guess it has either 1x 256MiB PC66/PC100/PC133 SDRAM or 2x
128MiB PC66/PC100/PC133 SDRAM memory-modules. Under "show chassis
routing-engine" output memory utilization is 90%:
root@M5> show chassis routing-engine
.
regards,
Martin
2013/4/3, Martin T :
> Hi,
>
> I have a Juniper M5(8.5R4.3) with RE-333-256 routing-engine in remote
> location. I guess it has either 1x 256MiB PC66/PC100/PC133 SDRAM or 2x
> 128MiB PC66/PC100/PC133 SDRAM memory-modules. Under "show chassis
> routing-
Hi,
Juniper routers support enabling(this is the default setting) and
disabling auto-negotiation both on 1000BASE-T(copper) and
1000BASE-X(optical) interfaces. Auto-negotiation on copper ports makes
sense because copper ports(for example on tri-rate DPC's on MX960)
support 10BASE-T and 100BASE-TX
Nick, Oliver:
by flow control you mean the 'regular' Ethernet flow control using the
PAUSE frame mechanism?
Olivier:
I wasn't aware that remote fault detection is part of the
autonegotiation. Thanks! I tested this out with two directly connected
Juniper M series routers and it works exactly as
Olivier,
I thought that "auto-negotiation remote-fault local-interface-online"
translates to "keep the local interface online despite the fact that
remote-fault detection, which is part of the autonegotiation, has
detected that link is unidirectional". If I connect both optical
cables, enable auto
Hi,
1) As I understand, XFP vendors store the recommended "Rx power" levels in
transceiver non-volatile memory during the manufacturing process and those
are read by switch/router over I2C bus. Are those values usually reliable?
I mean for example if "show interfaces diagnostics optics" displays t
> On (2013-06-16 20:40 +0300), Martin T wrote:
>
> Hi Martin,
>
>> 1) As I understand, XFP vendors store the recommended "Rx power" levels
>> in
>> transceiver non-volatile memory during the manufacturing process and
>> those
>> are read by swit
Hi,
M and MX series routing-engines have HDD(or SSD) installed which has a
UFS and is mounted to /var. /var directory contains many important
sub-directories like "log" for log files, "crash" for core-dumps,
"tmp" for some temporary files etc. However, what happens if HDD fails
while the routing-e
Hi,
I did now :) However, it had no effect. On the other hand, dismounting
the /var is not near the same as completely removing or failure of the
HDD on a working routing-engine.
Example with M20:
root@M20> show configuration chassis
routing-engine {
on-disk-failure disk-failure-action rebo
n-disk-failure disk-failure-action reboot
> set chassis redundancy failover on-disk-failure
>
> Did you try both?
>
>
> -Original Message-
> From: Martin T [mailto:m4rtn...@gmail.com]
> Sent: Wednesday, June 26, 2013 11:58 AM
> To: Per Granath
> Cc: mer...@geeks.o
Hi,
I have a GigE port with flexible-ethernet-services encapsulation and
bunch of VLAN sub-interfaces. I would like to poll this GigE interface
for troubleshooting purposes at certain times with 1s interval over
SNMP in order to understand traffic usage(both bps and pps) on this
interface. In "sho
ive" output. Any ideas?
regards,
Martin
On Mon, May 5, 2014 at 4:41 PM, Saku Ytti wrote:
> On (2014-05-05 18:41 +0300), Martin T wrote:
>
>> poll the ifInOctets and ifInUcastPkts counters for ge-0/0/3(SNMP
>> IfIndex 723) over SNMP:
>>
>> $ for i in 0 1; do snm
Hi,
has anyone investigated what interface is used in case of mini-PIM
modules? Physically it looks similar to 68-pin SCSI-3 connector:
http://i.imgur.com/UxhCS6g.jpg Do they use some proprietary protocol
or is it indeed SCSI? It would probably appear in kernel message
buffer(seen with dmesg/"show
Saku,
to be technically correct, I could poll the 32 bit counters as well in
case of short polling interval, but it's easier to poll the 64 bit
counters as I do not need to take counter roll over into
consideration.
regards,
Martin
On 5/6/14, Martin T wrote:
> Saku,
>
> as yo
stPkts.723 374757384876
$
Sorry for overlooking this. However, I'm afraid that 5 second interval
is too long for me in this case and I'll still need to log into router
and parse the output of CLI command.
regards,
Martin
On 5/6/14, Saku Ytti wrote:
> On (2014-05-05 18:39 +), Martin
has for expansion is 32-bit 66MHz PCI. That would give you just over 2Gbps
> of bandwidth on the PCI bus shared between the single mini-PIM slot and
> anything else Junpier have hooked up to the PCI bus, with the biggest
> mini-PIM that you can get being 1x1Gbps.
>
> Edward Dore
&
Hi!
When I deploy a vMX named "vmx1" with vmx.sh orchestration script,
then it automatically creates tap devices "br-ext-nic" and
"br-int-vmx1-nic":
$ ip tuntap | grep -E "br-ext-nic|br-int-vmx1-nic"
br-ext-nic: tap UNKNOWN_FLAGS:800
br-int-vmx1-nic: tap UNKNOWN_FLAGS:800
$
"br-ext-nic" is one o
Hi!
When I deploy a vMX using orchestration scripts, then I end up with
following virtualized topology:
https://i.imgur.com/bBTXGM0.png
Now when I execute "file copy root@192.168.122.1:/tmp/1G_file
/dev/zero" in vMX, then I can see that traffic traverses
virbr0[ge-0.0.0-vmx1] <-> [ge-0/0/0]vcp-v
On Wed, Jun 6, 2018 at 11:17 AM, James Bensley wrote:
> On 4 June 2018 at 13:46, Martin T wrote:
>> Hi!
>
> Hi!
>
>> When I deploy a vMX using orchestration scripts, then I end up with
>> following virtualized topology:
>>
>> https://i.imgur.com/bBTXG
Hi!
I have quite often used "!" negation operator familiar from other
languages. For example:
/* If string does not match the pattern, then terminate the script. */
if ( ! jcs:regex( $pattern, $string ) ) {
terminate 'Invalid input string!';
}
However, I have not found this method in the of
Hi!
> There is not() :
Oh, yes. I forgot the not() function. I made a small comparison
between not(), jcs:empty() and ! using five data types in SLAX:
1) False boolean value:
As expected "not( $boolean )" returns true. Also, the "jcs:empty(
$boolean )" returns true because jcs:empty() always co
On Mon, Jun 18, 2018 at 9:40 PM Phil Shafer wrote:
>
> Martin T writes:
> >Oh, yes. I forgot the not() function. I made a small comparison
> >between not(), jcs:empty() and ! using five data types in SLAX:
>
> "!" and "not" are identical. The "!&
Hi!
Is there a way to terminate endless loop in SLAX? For example, if I
configure something as simple as that:
match / {
{
while ( true() ) {
terminate;
}
}
}
..then according to the debugger, the while loop does not seem to be
looping but simply hangs.
tha
On Mon, Jun 25, 2018 at 7:32 PM Phil Shafer wrote:
>
> Martin T writes:
> >Hi!
> >
> >Is there a way to terminate endless loop in SLAX? For example, if I
> >configure something as simple as that:
> >
> >match / {
> > {
> &
On Tue, Jun 26, 2018 at 9:35 PM Phil Shafer wrote:
>
> Martin T writes:
> >Thanks Phil! So in short, at the moment "terminate" statement inside
> >the while loop works in a way that when "terminate" statement is
> >executed, then immediately next it
Hi!
According to the documentation, math:random() function returns a
random number with a minimum value of 0 and a maximum value of 1.
Larger values than 0 and smaller values than 1 have a format similar
to 0.663341003779015. What is the format of minimum and maximum value?
Simply 0 and 1? 0.0
On Thu, Jul 5, 2018 at 11:37 PM Phil Shafer wrote:
>
> Michael Loftis writes:
> >idk if there's a floor function but the general solution is floor(rand() *
> >16) when rand() produces values 0-1(exclusive) IE if random does not
> >generate 1.0 - dunno implementation details for slax
>
> Yes, XPath
Hi!
Is it possible to pass apostrophe character(ASCII dec code 39) as an
argument value to SLAX script? I have tried to escape it, but it does
not seem to work:
root@vmx1> op test chr '
''':(null):(2) Invalid expression
error: runtime error
error: Evaluating user parameter chr failed
root@vmx1>
On Thu, Jul 12, 2018 at 11:20 PM Phil Shafer wrote:
>
> Martin T writes:
> >Is it possible to pass apostrophe character(ASCII dec code 39) as an
> >argument value to SLAX script? I have tried to escape it, but it does
> >not seem to work:
>
> Quote it:
&g
On Fri, Jul 13, 2018 at 12:35 AM Phil Shafer wrote:
>
> Martin T writes:
> >aren't you using grave accent("echo -e "\x60"") character? I was using
> >"echo -e "\x27"" character.
>
> Doh! I read apostrophe (even named the scrip
Hi!
I encountered an interesting behavior where set:difference() function
does not work when node-set variable is manually defined like this:
var $vlan-range_ := {
{
"99";
}
{
"100";
}
{
"101";
}
{
"102";
}
}
However, the se
Hi Phil,
> Two issues: first is that it is really comparing nodes not contents
Yes, that I understand. For example, here both element nodes contain
the same text node, but set:difference() still returns a node-set
99:
$ cat foo.slax
version 1.2;
var $v1 := {
{
"99";
}
{
Hi!
I need to trim the text node of a specific element node in SLAX. All
other elements should remain as in the original node-set. At the
moment, I do it like this:
$ cat trim_node-set.slax
version 1.2;
main {
var $alphabet := {
{
{
"bbb ";
"ccc ";
}
On Thu, Oct 25, 2018 at 10:08 PM Phil Shafer wrote:
>
> Martin T writes:
> >I need to trim the text node of a specific element node in SLAX. All
> >other elements should remain as in the original node-set. At the
> >moment, I do it like this:
>
> Use apply-te
Hi!
I have a simple network topology where tap interface named
ge-0.0.1-vmx1(generated by vMX orchestration scripts) is connected to
virbr1 bridge port 1. This ge-0.0.1-vmx1 is mapped to ge-0/0/1
interface in Junos and has IPv4 address 10.210.0.1/24 configured.
virbr1 has 10.210.0.2/24 configured:
On Fri, Nov 2, 2018 at 6:15 PM Martin T wrote:
>
> Hi!
>
> I have a simple network topology where tap interface named
> ge-0.0.1-vmx1(generated by vMX orchestration scripts) is connected to
> virbr1 bridge port 1. This ge-0.0.1-vmx1 is mapped to ge-0/0/1
> interface in Junos
Hi!
I have a XML text node which contains random integers between 1 and 10
and are separated by LF(0x0a). I convert this text node into a string
and use jcs:break-lines() to put those numbers into a node-set. This
means, that eventually I have an object like this:
(sdb) print $int_ns
[node-set] (
1 - 100 of 188 matches
Mail list logo