I'am trying to write a function which can parse 1 or 2 ip addresses & a searchterm.
For example: ./system.py 172.16.19.152,172.16.19.153 model\ name
Output:
Search term: model name
Server: 172.16.19.152
Results:
Processor 0:
model name : Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Server: 172.16.19.153
Results:
Processor 0:
model name : Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
How can i get this usage instructions with argparse:
usage:./system.py {IP}[,{IP}] {SEARCH\ TERM}
nargsto limit the number of IPs