Sponsored Content
Top Forums Shell Programming and Scripting bash: convert mac address to 16 character format Post 302394457 by icebreaker10 on Thursday 11th of February 2010 11:35:23 AM
Old 02-11-2010
something to modify

Is there anyone here that can help me with docsis.level script?I want something like this:


when i extract information from modems it will show me cpe table in decimal format(0000.0000.0000).I want to print cpe table values in hexa format(00:00:00:00:00:00).
I was trying wih
Net::MAC perl extension,but i am not to good in perl.
Please help.Thanks
 

10 More Discussions You Might Find Interesting

1. IP Networking

How to Achive IP address through MAC(Ethernet) address

Hi sir, i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address....... but i'm nt getting that how i can pass the MAC address to Frame........ Please give me an idea for making such program... Thanks & regards Krishna (3 Replies)
Discussion started by: krishnacins
3 Replies

2. Shell Programming and Scripting

convert mmddyy date format to ccyyddd format??

hi, for reading a cobol indexed file i need to convert "mmddyy" date format to "ccyyddd" format. i checked the datecalc and other scripts but couldnt modify them to cater to my need:(... The datecalc gives an output which i believe is the total days till that date, but i want to convert it... (2 Replies)
Discussion started by: Bhups
2 Replies

3. UNIX for Advanced & Expert Users

Convert UTF8 Format file to ANSI format

:) Hi i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error Function i used it as $ iconv -f UTF8 -t ANSI filename Error iam getting is NOT Supported UTF8 to ANSI please some help me out on this.........Let me... (1 Reply)
Discussion started by: rajreddy
1 Replies

4. UNIX for Dummies Questions & Answers

Convert UTF8 Format file to ANSI format

:confused: Hi i am trying to convert a file which is in UTF8 format to ANSI format i tried to use the function ICONV but it is throwing error Function i used it as $ iconv -f UTF8 -t ANSI filename Error iam getting is NOT Supported UTF8 to ANSI please some help me out on... (9 Replies)
Discussion started by: rajreddy
9 Replies

5. UNIX for Dummies Questions & Answers

To convert multi format file to a readable ascii format

Hi I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„İİ¡Š·œƒ.„İİ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source . Can any one suggest a way a logic to convert such... (5 Replies)
Discussion started by: gaur.deepti
5 Replies

6. Shell Programming and Scripting

Convert UNIX file format to PC format

Hi All, Is there any way to convert a file which is in UNIX format to a PC format.... Flip command can be used , apart form this command can we have any other way.... like usinf "awk" etc ..... main purpose of not using flip is that my Kshell doesnot support this comamnd.... (2 Replies)
Discussion started by: Samtel
2 Replies

7. IP Networking

Tracing a MAC address to IP address: Solaris

Hi there I lost connectivity to one of our remote systems and when I checked the messages log I found the following: Aug 10 23:42:34 host xntpd: time reset (step) 1.681729 s Aug 16 13:20:51 host ip: WARNING: node "mac address" is using our IP address x.x.x.x on aggr1 Aug 16 13:20:51 host... (9 Replies)
Discussion started by: notreallyhere
9 Replies

8. Shell Programming and Scripting

perl module to convert xlsx format to xls format

Hi Folks, I have written a perl script that reads data from excel sheet(.xls) using Spreadsheet::ParseExcel module. But the problem is this module doesn't work for excel sheets with extension .xlsx. I have gone through Spreadsheet::XLSX module with which we can read from .xlsx file directly.... (1 Reply)
Discussion started by: giridhar276
1 Replies

9. IP Networking

MAC Address - Four Interfaces with the same MAC Address

four interfaces with ifconfig all interfaces have the same mac. If is not set for unique. but it still works. what difference does it make to have all macs the same or different? (4 Replies)
Discussion started by: rrodgers
4 Replies

10. Shell Programming and Scripting

Bash script who maps IP with MAC address

Hy every body, Unfortunately and without success, i want to write a bash script who maps a known IP addess to a known MAC address using iptables and for the FORWARD chain. Within the DHCP server, i have assigned a fixed IP address to all clients based on their MAC addresses of their... (11 Replies)
Discussion started by: hermouche
11 Replies
bt-device(1)							    bluez-tools 						      bt-device(1)

NAME
bt-device - a bluetooth device manager SYNOPSIS
bt-device [OPTION...] Help Options: -h, --help Application Options: -a, --adapter=<name|mac> -l, --list -c, --connect=<mac> -d, --disconnect=<name|mac> -r, --remove=<name|mac> -i, --info=<name|mac> -s, --services <name|mac> [<pattern>] --set <name|mac> <property> <value> -v, --verbose DESCRIPTION
This utility is used to manage Bluetooth devices. You can list added devices, connect to a new device, disconnect device, remove added device, show info about device, discover remote device services or change device properties. OPTIONS
-h, --help Show help -a, --adapter <name|mac> Specify adapter to use by his Name or MAC address (if this option does not defined - default adapter used) -l, --list List added devices -c, --connect <mac> Connect to the remote device by his MAC, retrieve all SDP records and then initiate the pairing -d, --disconnect <name|mac> Disconnects a specific remote device by terminating the low-level ACL connection. -r, --remove Remove device (and also the pairing information) -i, --info Show information about device (returns all properties) -s, --services <name|mac> [<pattern>] Starts the service discovery to retrieve remote service records, the `pattern` parameter can be used to specify specific UUIDs --set <property> <value> Change device properties (see DEVICE PROPERTIES section for list of available properties) -v, --verbose Verbosely display remote service records (affect to service discovery mode) DEVICE PROPERTIES
string Address [ro] The Bluetooth device address (MAC) of the remote device. string Name [ro] The Bluetooth remote device name. string Icon [ro] Proposed icon name according to the freedesktop.org icon naming specification. uint32 Class [ro] The Bluetooth class of device of the remote device. list UUIDs [ro] List of 128-bit UUIDs that represents the available remote services. boolean Paired [ro] Indicates if the remote device is paired. boolean Connected [ro] Indicates if the remote device is currently connected. boolean Trusted [rw] Indicates if the remote is seen as trusted. boolean Blocked [rw] If set to true any incoming connections from the device will be immediately rejected. string Alias [rw] The name alias for the remote device. The alias can be used to have a different friendly name for the remote device. In case no alias is set, it will return the remote device name. Setting an empty string as alias will convert it back to the remote device name. boolean LegacyPairing [ro] Set to true if the device only supports the pre-2.1 pairing mechanism. AUTHOR
Alexander Orlenko <zxteam@gmail.com>. SEE ALSO
bt-adapter(1) bt-agent(1) bt-audio(1) bt-input(1) bt-monitor(1) bt-network(1) bt-serial(1) 2010-11-22 bt-device(1)
All times are GMT -4. The time now is 11:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy