Quantcast
Viewing all articles
Browse latest Browse all 8827

Re: String Arrays in NCM

Editor stopped working.

 

//Testing results and code.   

string @VLANControl16 = getoctet (@VLANControl,16)

string @VLANControl17 = getoctet (@VLANControl,17)

CLI {! @VLANControl1 @VLANControl2 @VLANControl3 @VLANControl4 @VLANControl5}

CLI {! @VLANControl6 @VLANControl7 @VLANControl8 @VLANControl9 @VLANControl10}

CLI {! @VLANControl11 @VLANControl12 @VLANControl13 @VLANControl14 @VLANControl15}

CLI {! @VLANControl16+'.'+@VLANControl17}

 

    if (@itemnum == '200')

        {

        @VLANControl = setoctet (@VLANControl, @dVLAN200, @itemnum)

        @VLANControl = setoctet (@VLANControl, 16, 'C:\Myfile\file1.txt')

        @StandardVLAN = 1

        }

 

The period in the file name makes another octet.

OUTPUT

! VLAN Control: 000.000.000.102.000.000.000.150.000.200.000.000.600.601.700.C:\Myfile\file1.txt.000.000.000.000

! 000 000 000 102 000

! 000 000 150 000 200

! 000 000 600 601 700

! C:\Myfile\file1.txt

Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 8827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>