Script Q Serial Number
четверг 18 октября admin 59
I have been tasked with doing a survey and inventory of a very large network. I specifically need to get the serial numbers of 1000+ Avaya switches and routers. All are accessible via either telnet or ssh from my workstation.
All retail software uses a serial number or key of some form. The installation often requires the user to enter a valid serial number to proceed. A serial can also be referred to as a 'CD Key'. When you search for Script Q Serial for example, you may find the word 'serial' amongst the results.
Almost all of them are accessible with the same user name and password. Some will have only telnet access and some will have only ssh access. Once logged in, I can get the serial number like this: en[crlf] (to enable cli command mode) show tec[crlf] (returns technical information of device) [3x spacebar] (to make sure serial number is displayed) q (to stop displaying more data and return to cli prompt) exit[crlf] (to end the terminal session) From the output generated by that I can then grep the serial numbers. So my problem is automating this in a bash script or something similar to generate a list of serial numbers against the given IP addresses of the devices.
The script should ideally: 1.Read the IP address of the device from a file. 2.Try to login with ssh credentials 1 (if failed, try credentials 2) 3.If failed, telnet credentials 1 (if failed, try credentials 2) 4.If all failed, write 'Failed to login' to output file. 5.If successful, write device IP address and serial to output file. 6.Repeat for next device IP in list. 7.Using plain text username and passwords in this situation is not an issue. I am using the latest Ubuntu Linux on my workstation.
Hoping someone can give me some advice on accomplishing this task. I do not look forward to manually logging into 1000 switches. Foto payudara besar wanita indah dan montoku youtube.
To look up the serial number is very easy,I specialize in buying and selling Cartier watches. I've seen fakes with all the correct marks and a serial number, but that doesn't mean they are legitimate. If the watch was registered by Cartier when it was sold or if it has been sent in to Cartier for service Cartier will be able to verify it is authentic, but be aware that if the watch was not originally sold in North America or was not registered when sold (fairly common) it can still be authentic. Some sellers offer the Cartier quartz model for sale and only state that the watch has a quartz movement, but fail to mention if it has a Cartier quartz movement.
If it has a replacement movement in it the watch is technically authentic, but not original and is not worth as much as one with an original or a genuine Cartier replacement movement. The biggest mistake I've seen amateur Cartier buyers make is using the Cartier micro-script signature on the Roman numeral to verify authenticity. Indeed this is a good indicator, but not the best indicator as there were many Cartier watches produced prior to the technology required to make the micro-script possible and not all Cartier watches have Roman numerals for the dial to have the micro-script signature. Furthermore, the micro-script is not always located at the same place and if the dial has been refinished it may not appear at all.