diff --git a/examples/get_columns.py b/examples/get_columns.py new file mode 100644 index 0000000..7f06d08 --- /dev/null +++ b/examples/get_columns.py @@ -0,0 +1,40 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# +# get_columns.py +# version: 2025-01-27 +# +# Copyright (c) 2025 Riverbed Technology, Inc. +# +# This software is licensed under the terms and conditions of the MIT License +# accompanying the software ("License"). This software is distributed "AS IS" +# as set forth in +""" +Get the list of columns available in NetProfiler + +Usage/Example: + + python get_columns.py -u -p + +Output sample: + +Key Columns Label ID Type +----------------------------------------------------------------------------------------------- +app_info Application 52 string +app_name Application 17 app +app_raw Raw app 94 string +c2s_flags C2S_FLAGS 50 string +cli_group_id Client Group ID 26 int +cli_group_name Client Group 27 group_parts +cli_group_parts Client Group 128 group_parts +cli_host_dhcp_dns Client Host 74 hostname +cli_host_dns Client 14 host_parts +cli_host_ip Client IP 13 ipaddr +... +""" + + +from steelscript.netprofiler.commands.columns import Command + +if __name__ == '__main__': + Command().run()