- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- STM and its syntax
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2003 03:23 AM
тАО09-18-2003 03:23 AM
STM and its syntax
I want to select, in as few commands as possible, all interface-cards visible from the queried server.
It must be a bug, but if there is someone out there who has a workaround, I would definitely appreciate it!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2003 04:33 AM
тАО09-18-2003 04:33 AM
Re: STM and its syntax
i.e. the number from the first interface is 10 in the displayed map (cstm> map)
then you can do this
# echo "seldev 10;info;wait;il"|cstm
Hope it helps !
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2003 05:19 AM
тАО09-18-2003 05:19 AM
Re: STM and its syntax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2003 05:51 AM
тАО09-18-2003 05:51 AM
Re: STM and its syntax
echo "selclass qualifier lan;info;wait;il"|cstm
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2003 06:04 AM
тАО09-18-2003 06:04 AM
Re: STM and its syntax
qualifier:
lan
fibre
scsi
memory
etc...
you will get all qualifier types if you start the cstm as root
#cstm
cstm> selclass
-- Select Class of Devices --
Select only Device Type:
* 1 All
2 Adapter
3 Disk
4 Hub
5 Interface
6 Memory
7 Processor
Enter selection [1]: 5
Select only Qualifier Type:
* 1 All
2 Audio
3 Bus
4 CPU
5 Centronics
6 Graphics
7 Hard
8 IDE
9 LAN
10 Memory
11 RS-232
12 SCSI
13 USB
Enter selection [1]:
As you can see there is no fibre qualifier. This is my example system has no fibre interface. So choose a system with a lot of different interfaces and you will see all available qualifiers on the system.
HTH
Roland
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-18-2003 06:44 AM
тАО09-18-2003 06:44 AM
Re: STM and its syntax
I myself stumbled a couple of times over the cstm syntax,
and I firmly believe that at least cstm's online help is somewhat faulty.
If you don't mind the cost of two cstm invocations you could throw these few lines into a Perl script.
However, you'd probably might want to put something more suitable in the while loop's body than just printing cstm's output as I did here:
@devs = map {/^\s+(\d+).+LAN/} qx(echo map|/usr/sbin/cstm);
die "oops, selection of NICs failed" unless @devs;
open CSTM, "echo \"sel dev @devs;info;wait;il\"|/usr/sbin/cstm |"
or die "cannot pipe from cstm";
print while (
close CSTM;